/*
 * BufferSysteem.h
 *
 *  Created on: Apr 13, 2012
 *      Author: nivard
 */

#ifndef BUFFERSYSTEEM_H_
#define BUFFERSYSTEEM_H_

#include "conc/Monitor.h"
#include <string>
#include <iostream>

using namespace std;

class BufferSysteem : public Monitor {
private:
	char buffer[9];
	bool lezen;
	bool wilLezen;
	int  huidigeSchrijvers;
	int wachtendeLezer;
public:
	BufferSysteem();
	virtual ~BufferSysteem();
	void updateBuffer(char beeld, int positie);
	string leesBuffer();
	void unlock();
};

#endif /* BUFFERSYSTEEM_H_ */
